//
// Created by 12992 on 24-10-28.
//
#include <iostream>
#include <gtest/gtest.h>
#include "args.h"

using namespace std;
template <size_t SIZE>
constexpr int arr_size(const char* (&a)[SIZE])
{
    return SIZE - 1;
}

TEST(TEST_ARGS, root_args)
{
    const char* buffer[] = {"ex-openssl", "--help", nullptr};

    ASSERT_NO_THROW({
        args a;
        a.parse(arr_size(buffer), buffer);
        });
}

TEST(TEST_ARGS, base64_args)
{
    const char* buffer[] = {"ex-openssl", "base64", "--help", nullptr};
    ASSERT_NO_THROW({
        args a;
        a.parse(arr_size(buffer), buffer);
        });
    cout << "end" << endl;
}
